package com.xiangxiao.rpan.storage.consumer.callback;

import com.alibaba.fastjson.JSONObject;
import com.xiangxiao.rpan.storage.constant.ResponseCode;
import com.xiangxiao.rpan.storage.consumer.IConsumerSettingsClient;
import com.xiangxiao.rpan.storage.utils.ReturnUtils;
import org.springframework.stereotype.Component;

/**
 * @auther xiangxiao
 * @email 573768011@qq.com
 * @data 2023/10/25 17:16
 */
@Component
public class SettingsClientCall implements IConsumerSettingsClient {
  @Override
  public JSONObject getDomain() {
    String error = "{\"error\":\"ConsumerSettingsClient getDomain method has error -----rpan-settings\"}";
    return ReturnUtils.getHystrixReturn(String.valueOf(ResponseCode.QUERY_DOMAIN_FAILED), "调用权限服务异常，走熔断器", "调用权限服务【getDomain】异常，走熔断器");
  }
}
